package allwe.testCGLib;

import lombok.Data;

/**
 * 定义人
 */
@Data
public class Person {

    private String name;

    // Cglib使用这个构造器创建真实对象
    public Person() {
        this.name = "张三";
    }

    public void eat(String foodName){
        System.out.println(this.name + "吃" + foodName);
    }
}
